import createStore from './create-store'
import createRoutes from './create-routes'

export default (context, options = {}) => {
  options = {
    scope: 'weibo',
    prefix: '/',
    source: {
      app_server: 'http://localhost:3001'
    },
    ...options
  }

  return {
    store: createStore(options),
    routes: createRoutes(context, options),
    options
  }
}
